package com.wnxy.parking;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wnxy.parking.entity.Parking;
import com.wnxy.parking.mapper.ParkingMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.HashMap;
import java.util.Map;

@SpringBootTest
public class App {
    @Autowired
    private ParkingMapper parkingMapper;
    @Test
    void find(){
        Map<String,String> map = new HashMap<>();
        map.put("username","陈子韬");
        map.put("numbers","D");
        IPage<Parking> page = parkingMapper.findPage(new Page<>(1, 5), map);
        System.out.println("page = " + page);
    }
}
